package com.guys8.cemsbackend.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * (Inschool)表实体类
 *
 * @author breeze
 * @since 2022-08-24 16:11:31
 */
@Setter
@Getter
@ToString
@Data
@Accessors(chain = true)
public class Inschool extends Model<Inschool> {
    @TableId(value = "in_id",type = IdType.AUTO)
    private Integer inId;
    private Integer userId;
    private Date upTime;
    private Date inTime;
    private String inCause;
    private String fplace;
    private String vehicle;
    private String hcode;
    //空表示没有经过风险区
    private String riskPlace;
    private float bodyTemperature;
    //0-审核中，1-通过，2-不通过
    private Integer auditState;
    private Date auditTime;
    private Integer auditAccount;
    @TableLogic
    private Integer isDelete;
    private Integer ext1;
    private String ext2;

    public Inschool(){}
    public Inschool(Integer userid, Date inTime, String inCause, String fplace, String vehicle, String hcode, String riskPlace, float bodyTemperature){
        setUserId(userid);
        setUpTime(new Date());
        setInTime(inTime);
        setInCause(inCause);
        setFplace(fplace);
        setVehicle(vehicle);
        setHcode(hcode);
        setRiskPlace(riskPlace);
        setBodyTemperature(bodyTemperature);
        setAuditState(0);
        setIsDelete(0);
    }
}

